using System.Web;
using System.Xml;
using System;

/*	-----------------------------------------------------------------------	
	Copyright:	umlungu consulting (pty) ltd
	Author:		Alan Benington	
	Started:	2006-06-22	
	Status:		release	
	Version:	1.0.4.20060622
	License:	GNU General Public License
	-----------------------------------------------------------------------	*/
	
namespace umlungu.engineX.blogX {
	/// <summary>
	/// This x_profilebroker class is a an extension of the base x_broker class.
	/// <para>It is a broker that's primary purpose is the persisting of request (form and query) parameters to a user's profile</para>
	/// <para>This class provides:</para>
	/// <para>- Process method that persists parameters to a user's profile</para>
	/// <para>- </para>
	/// </summary>
	public class x_profilebroker : x_broker {
		#region Invisible properties
		#endregion

		#region Visible properties
		#endregion

		#region Constructors/Destructors
		/// <overloads>Constructor</overloads>
		/// <summary>Default constructor</summary>
		/// <param name="thispage">The web application Page object</param>
		public x_profilebroker(displayX thispage)  : base(thispage) {
		}
		#endregion

		#region Public methods
		///	<overloads>Broker processing method</overloads>
		/// <summary>
		/// Does the broker processing of the page request. 
		/// </summary>
		public override void Act() {
			_AddRequest();
		}
		#endregion
		
		#region Protected methods
		/// <summary>Add request fields to user profile</summary>
		protected void _AddRequest() {
			if (UserProfile != null)
				UserProfile.Add(UIPage.Request);
		}
		#endregion
				
		#region Private methods
		#endregion
	}
}
